# -*- coding:utf-8 -*-
import os
import logging


logger = logging.Logger("market", logging.INFO)
log_file = os.path.dirname(os.path.dirname(__file__))
formatter = logging.Formatter('[%(levelname)s/%(processName)s] %(message)s')
log_file = os.path.join(log_file, "logs", "market.log")
handler = logging.FileHandler(log_file)
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.INFO)
